package business;

import java.util.List;

import dao.IVideoDAO;
import dao.JDBCVideoDAO;
import domain.Video;

public class BusinessVideo {
	
	public static List<Video> getAllVideos(){
		IVideoDAO videoDAO = new JDBCVideoDAO();
		return videoDAO.getAllVideos();
	}
	
	public static List<Video> getAllVideosByGenre(String genre){
		IVideoDAO videoDAO = new JDBCVideoDAO();
		return videoDAO.getAllVideosByGenre(genre);
	}
	
	public static List<Video> getAllVideosStartingWithLetter(char letter){
		IVideoDAO videoDAO = new JDBCVideoDAO();
		return videoDAO.getAllVideosStartingWithLetter(letter);
	}
	
	public static Video getVideoByTitle(String title){
		IVideoDAO videoDAO = new JDBCVideoDAO();
		return videoDAO.getVideoByTitle(title);
	}
	
	public static String getTitleById(Integer idvid){
		IVideoDAO videoDAO = new JDBCVideoDAO();
		return videoDAO.getTitleById(idvid);
	}
	
	public static Video getVideoById(Integer id){
		IVideoDAO videoDAO = new JDBCVideoDAO();
		return videoDAO.getVideoById(id);
	}

	public static List<Video> getAllVideosByTitleYearGenre(String title,
			Integer year, String genre) {
		IVideoDAO videoDAO = new JDBCVideoDAO();
		return videoDAO.getAllVideosByTitleYearGenre(title,year,genre);
	}

	public static List<Video> getAllVideosByTitleYear(String title, Integer year) {
		IVideoDAO videoDAO = new JDBCVideoDAO();
		return videoDAO.getAllVideosByTitleYear(title,year);
	}

	public static List<Video> getAllVideosByTitleGenre(String title, String genre) {
		IVideoDAO videoDAO = new JDBCVideoDAO();
		return videoDAO.getAllVideosByTitleGenre(title,genre);
	}

	public static List<Video> getAllVideosByTitle(String title) {
		IVideoDAO videoDAO = new JDBCVideoDAO();
		return videoDAO.getAllVideosByTitle(title);
	}

	public static List<Video> getAllVideosByYearGenre(Integer year, String genre) {
		IVideoDAO videoDAO = new JDBCVideoDAO();
		return videoDAO.getAllVideosByYearGenre(year,genre);
	}

	public static List<Video> getAllVideosByYear(Integer year) {
		IVideoDAO videoDAO = new JDBCVideoDAO();
		return videoDAO.getAllVideosByYear(year);
	}
}
